derive the quadratic formula by completing the square